import { ColumnProps } from '~/library/components/ProTable/interface'
import { Member } from '~/src/api/interface/member'

export const refillRuleColumns: ColumnProps<Member.RefillRule>[] = [
  { type: 'selection', label: '', width: 60 },
  { type: 'index', label: '序号', width: 60 },
  { sortable: true, prop: 'name', label: '活动名称', minWidth: 180 },
  { sortable: true, prop: 'userCategoryName', label: '会员分类', minWidth: 150 },
  // { sortable: true,prop: "userCategoryId", label: "会员分类", minWidth: 180 },
  { sortable: true, prop: 'startTime', label: '开始时间', minWidth: 164 },
  { sortable: true, prop: 'endTime', label: '结束时间', minWidth: 164 },
  { sortable: true, prop: 'depositMoney', label: '充值金额', minWidth: 120 },
  { sortable: true, prop: 'giveMoney', label: '赠送金额', minWidth: 120 },
  { sortable: true, prop: 'couponCount', label: '赠送卡券数量', minWidth: 140 },
  // { sortable: true,prop: "couponName", label: "赠送卡券名称", minWidth: 200 },
  // { sortable: true,prop: "giftBalance", label: "赠送卡券数量", minWidth: 120 },
  {
    sortable: true,
    prop: 'depositTypeText',
    label: '充值类型',
    minWidth: 120,
  },
  // enum: memberStatus,
  {
    sortable: true,
    prop: 'statusText',
    label: '状态',
    minWidth: 120,
  },
  {
    sortable: true,
    prop: 'isAccumulation',
    label: '是否累加',
    minWidth: 110,
    enum: [
      { label: '累加', value: 1 },
      { label: '不累加', value: 2 },
    ],
    align: 'left',
  },
  { sortable: true, prop: 'remark', label: '备注', align: 'left', minWidth: 160 },
  // { prop: 'operation', label: '操作', width: 220, fixed: 'right' },
]
